package com.xs.shop.goods.model.vo;

import com.xs.shop.goods.model.entity.Category;
import lombok.Data;

@Data
public class CategoryListVO {
    private Long id;
    private String name;

    public CategoryListVO() {
    }

    public CategoryListVO(Category category) {
        this.id = category.getId();
        this.name = category.getName();
    }
}
